package com.enumdemo.multi_channel_distribution.demo1;

import com.enumdemo.multi_channel_distribution.demo1.face.Item;
import static com.enumdemo.multi_channel_distribution.demo1.Outcome.*;

public class Rock implements Item {

	public Outcome compete(Item it) {
		return it.eval(this);
	}

	public Outcome eval(Paper p) {
		return WIN;
	}

	public Outcome eval(Scissors s) {
		return LOSE;
	}

	public Outcome eval(Rock r) {
		return DRAW;
	}

	public String toString() {
		return "Rock";
	}

}
